package com.ohs.ohsoa.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ohs.ohsoa.system.dto.PushlogDto;
import com.ohs.ohsoa.system.entity.Pushlog;
import com.ohs.ohsoa.system.vo.PushlogVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PushlogMapper extends BaseMapper<Pushlog> {
    /**
     *
     * @param pushlogDto 消息信息
     * @return 消息信息数据
     */
    List<PushlogVo> pushlogSelectList(@Param("pushlogDto")PushlogDto pushlogDto);

    /**
     *
     * @param pguid 消息id
     * @return 是否已读
     */
    Boolean pushlogUpdateReadflg(@Param("pguid")String pguid);

    /**
     *
     * @param personnelGuid  Guid
     * @return 未读数量
     */
    Integer pushlogselectnotreadcount(@Param("personnelGuid")String personnelGuid);
}
